]> dgit.raspbian.org Git - gnome-shell.git/commit
util: Don't wiggle when animations are disabled
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 22 Feb 2020 13:25:37 +0000 (14:25 +0100)
committerCarlos Garnacho <mrgarnacho@gmail.com>
Sat, 22 Feb 2020 16:38:43 +0000 (16:38 +0000)
commit475919720058ee9de45b5f68bb1ee062f7f35563
treedbcdd89e965176ecdeaf3b690ded881f1c089630
parent1d39afabdcee45e3456d16c8c06ae24be384fe4a
util: Don't wiggle when animations are disabled

repeatCount and autoReverse don't play well with animations disabled:
They cause password entries to wiggle themselves off-screen (by ending
up with some off-scale translation-x value).

While we should handle this more gracefully in the transition helpers,
it also makes sense to handle the case directly in wiggle(): As it
uses a chain of three transitions, we would still end up with a crude
one-frame-per-transition wiggle "animation".

Instead, do no animation at all as you would expect when animations are
disabled.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/2236
js/misc/util.js